﻿package com.snakedickgames.common.sandy 
{
    import com.pblabs.engine.debug.Logger;
    import com.pblabs.engine.entity.EntityComponent;
    import sandy.primitive.Sphere;
    
    
    public class SandySphere extends SandyTransformable
    {
        public var radius:Number = 1;
        public var segmentsH:Number = 6;
        public var segmentsW:Number = 8;
        
        public function get sphere():Sphere
        {
            return _node as Sphere;
        }
        
        override protected function onReset():void 
        {
            if (!node && scene )
            {
                node = new Sphere(name, radius, segmentsW, segmentsH);
            }
            super.onReset();            
        }
    }
}